// pages/test/index.js
Page({
    data: {
      msg:'Hello Miniprograme',
      stu:[
        {name:'张三丰',score:100,skill:['打坐','睡觉']},
        {name:'张三丰1',score:101,skill:['打坐1','睡觉1']},
        {name:'张三丰2',score:102,skill:['打坐2','睡觉2']},
      ],
      isShow:false,
      isActive:true
    },
    onLoad(options) {

    },
    onShow() {

    },
    handleShow(){
      console.log(1111);
      let bool = this.data.isShow  //提取原数据
      this.setData({ //唯一触发数据响应式变化的方法
        isShow:!bool
      })
    },
    handleBg(){
      this.setData({
        isActive:!this.data.isActive
      })
    }

})